package com.ruoyi.exam.domain.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 班组安全活动记录，用于记录班组的安全活动信息对象 t_safety_activity
 * 
 * @author ruoyi
 * @date 2024-12-17
 */
public class SafetyActivity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键，活动记录ID */
    private Long id;

    /** 活动标题 */
    @Excel(name = "活动标题")
    private String title;

    /** 部门ID，关联部门表主键 */
    @Excel(name = "部门ID，关联部门表主键")
    private Long deptId;
    /** 部门ID，关联部门表主键 */
    @Excel(name = "部门ID，关联部门表主键")
    private String deptName;
    /** 文件路径，用于存储相关文件的地址 */
    @Excel(name = "文件路径，用于存储相关文件的地址")
    private String filePath;

    /** 活动内容，记录活动的详细描述 */
    @Excel(name = "活动内容，记录活动的详细描述")
    private String content;

    /** 活动时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "活动时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recordTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setFilePath(String filePath) 
    {
        this.filePath = filePath;
    }

    public String getFilePath() 
    {
        return filePath;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setRecordTime(Date recordTime) 
    {
        this.recordTime = recordTime;
    }

    public Date getRecordTime() 
    {
        return recordTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("deptId", getDeptId())
            .append("filePath", getFilePath())
            .append("content", getContent())
            .append("recordTime", getRecordTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
                .append("deptName", getDeptName())
            .toString();
    }
}
